def demo(*args, **kwargs):
    print(args)
    print(kwargs)


gl_nums = (1, 2, 3)
gl_dict = {"name": "小明", "age": "15"}
# 此时会有粘包
# ((1, 2, 3), {'name': '小明', 'age': '15'})
demo(gl_nums, gl_dict)

# 拆包语法，简化元祖和字典的多值调用
# (1, 2, 3)
# {'name': '小明', 'age': '15'}
demo(*gl_nums, **gl_dict)
